<template>
	<view class="course_nav_con">
		<view class="course_nav_info" v-for="(item,index) in list" :key="index">
			<text class="nav_icon icon iconfont" :class="item.icon"></text>
			<view class="nav_text">{{item.text}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[]
			}
		},
		methods: {
			
		},
		mounted() {
			uni.request({
				url:"http://html5.bjsxt.cn/api/index/nav",
				success: (res) => {
					console.log(res.data)
					this.list=res.data.data
				}
			})
		}
	}
</script>

<style lang="scss">
	@import "@/common/font/iconfont.css";
	.course_nav_con{
		display: flex;
		// 盒子模型不撑开容器本身大小
		box-sizing: border-box;
		flex-wrap: wrap;
		flex-direction: row;
		padding: 15px 10px;
		.icon-java {
						color: #2a83fe;
					}
		
					.icon-weifuwu {
						color: #fd3761;
					}
		
					.icon-zuzhijiagou {
						color: #2b91e2;
					}
		
					.icon-dashuju {
						color: #2a83fe;
					}
		
					.icon-h {
						color: #00b478;
					}
		
					.icon-icon-- {
						color: #fd6012;
					}
		
					.icon-rengongzhineng {
						color: #fe391f;
					}
		
					.icon-ruanjianceshi {
						color: #00b478;
					}
		
					.icon-huatong {
						color: #fea917;
					}
		
					.icon-bianchengshibaobiao_icon {
						color: #2a83fe;
					}
		
					.icon-jianmo {
						color: #00b478;
					}
		
					.icon-chuangye {
						color: #fe391f;
					}
		.course_nav_info{
			width: 20%;
			flex-direction: row;
			flex-wrap: wrap;
			text-align: center;
			margin-bottom: 15px;
		}
		.nav_icon{
			font-size: 30px;
		}
		.nav_text{
			font-size: 10px;
			margin-top: 10px;
			white-space: nowrap;
			text-overflow: ellipsis;
			overflow: hidden;
		}
	}
</style>
